package com.powernode.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.powernode.domain.Order;
import com.powernode.dto.OrderConfirmParam;
import com.powernode.vo.OrderVo;

/**
 * 内容:
 * 作者: cy
 */
public interface OrderService extends IService<Order> {


    /**
     * 订单确认
     *
     * @param openId
     * @param orderConfirmParam
     * @return
     */
    OrderVo orderConfirm(String openId, OrderConfirmParam orderConfirmParam);

    /**
     * 下预订单
     * @param openId
     * @param orderVo
     * @return
     */
    String doOrder(String openId, OrderVo orderVo);

    /**
     * 回滚操作
     * @param order
     */
    void orderRollback(Order order);
}
